package com.momoc.mrpc.register.definition;

import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author momoc
 * @version 1.0
 * @className MRpcDefinition
 * @description 扫描注解时，生成的远程调用服务信息
 * @date 2022/7/25 1:45 下午
 */
@NoArgsConstructor
@Data
public class MRpcRegDefinition {
    //暴露一个类和一个方法即可
    String interfaceClassName;
    List<String> methodList;
    String version;
    Class interfaceClass;

    public MRpcRegDefinition(String interfaceClassName, List<String> methodList) {
        this.interfaceClassName = interfaceClassName;
        this.methodList = methodList;
    }
}
